package com.app.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("lm_questionnaire_answer")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class QuestionModel {
    private String name;
    private int id;
    private int choice;
    @TableField(exist = false)
    private String choiceText;
    private Integer pid;
    private Integer sort;
    private Integer status;
    @TableField(exist = false)
    private List<OptionModel> option;
    @TableField(exist = false)
    private List<OptionModel> child;
    @TableField(exist = false)
    List<QuestionModel> question;
    @TableField(exist = false)
    private Integer userId;
    @TableField(exist = false)
    private String faceUrl;
    @TableField(exist = false)
    private String userName;
    @TableField(exist = false)
    private String mobile;
    @TableField(exist = false)
    private String questionName;
    @TableField(exist = false)
    private List<String> optionName;
    @TableField(exist = false)
    private UserModel user;
    @TableField(exist = false)
    private LocalDateTime creatTime;

}
